from flask_migrate import Migrate,MigrateCommand
from flask_script import  Manager
from iHome import create_app,db


app = create_app('develope')
manager = Manager(app)  # 用manager管理app
Migrate(app, db)  # 创建数据库的迁移框架
manager.add_command('mysql', MigrateCommand)  # 添加迁移数据库框架的脚本



if __name__ == '__main__':

    manager.run()